package com.neborosoft.android.gui.adapters.listview;

import android.content.Context;
import android.view.View;
import android.widget.AbsListView;
import android.widget.TextView;
import com.neborosoft.FlyingDog.R;

/**
 * Created with IntelliJ IDEA.
 * User: CM
 * Date: 01.01.13
 * Time: 22:58
 * To change this template use File | Settings | File Templates.
 */
public class TextViewArrayAdapter extends SingleViewArrayAdapter<CharSequence>{
    public TextViewArrayAdapter(Context context, AbsListView parent) {
        super(context, parent);
    }

    @Override
    protected int getRootLayoutId() {
        return R.layout.simple_text_view;
    }

    @Override
    protected void reuseView(CharSequence text, View viewObject, int position) {
        TextView view = (TextView)viewObject;
        view.setText(text);
    }
}
